<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const arr1 = [
        ["a", "b", "c"],
        ["e", "f", "g"],
        ["h", "i", "j"],
      ];
      const arr2 = [1, 2, 3];

      // 强制类型转换
      console.log(String(arr1));
      console.log(String(arr2));

      // 字符串拼接
      console.log(arr1 + "");
      console.log(arr2 + "");

      // toString
      console.log(arr1.toString());
      console.log(arr2.toString());
    </script>
  </body>
</html>
